import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/harry";

// 查询站点分页列表
export function listSite(query) {
  return request({
    url: '/sys/site/pageList',
    method: 'get',
    params: query
  })
}
export function getHead(query) {
  return request({
    url: '/sys/site/select',
    method: 'get',
    params: query
  })
}

// 新增站点 无id新增有id编辑
export function addSite(data) {
  return request({
    url: '/sys/site/create',
    method: 'post',
    data: data
  })
}
// 删除站点
export function delSite(id) {
  return request({
    url: '/sys/site/delete/' + id,
    method: 'delete'
  })
}
